package edu.biwu.sms;




import java.io.IOException;
import java.util.UUID;

public class Demo02 {
    public static void main(String[] args) throws IOException {
        StudentManagementSystem02 sms = new StudentManagementSystem02();
        sms.loadStudentsFromFile("src/day23_IO/中学生信息01.txt");
        sms.writeRankedStudentsToFile("src/day23_IO/总分排名.txt");
//        metho02();
//method01();
    }

    private static void metho02() throws IOException {
        StudentManagementSystem02 sms = new StudentManagementSystem02();
//        从小学生信息.txt中加载小学生信息到系统

        sms.loadStudentsFromFile("src/day23_IO/中学生信息01.txt");
        sms.showAllStudnet();
        System.out.println("===========高到低==============");
        sms.sortByTotalScore();
        sms.showAllStudnet();
    }

    public  static void  method01(){
        //uuID保证生成的序列唯一
        System.out.println(UUID.randomUUID());
    }

}
